using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Threading.Tasks;
using UnityEngine.UI;


public class Fader 
{
    //[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "CS1998:This async method lacks 'await' operators and will run synchronously", Justification = "<Pending>")]
    //public async Task FadeAsync(PageContainer from, PageContainer to)
    //{
    //    //to.Active = false;
    //    //var f = UIEngine.Stuff.ShowFloatingAsync("ColorFadeFloating", null, UILayer.TransitionLayer);
    //    //var group = f.gameObject.GetOrAddComponent<CanvasGroup>();
    //    //group.alpha = 0;
    //    //group.DOFade(1f, 0.2f);
    //    //await Task.Delay(200);
    //    //to.Active = true;
    //    //group.DOFade(0f, 0.2f);
    //    //await Task.Delay(200);
    //    //f.Remove();
    //}
}
